import axios from "../sever/axios"
export const login = (params) => axios.get('/login', {
  params: {
    ...params
  }
})

//注册
export const register = (phone, pwd) => axios.post('/register', {
  phone,
  pwd
})
//忘记密码
export const forGetpwd = (phone, pwd) => axios.post('/update', {
  phone,
  pwd
})
//获取验证码
export const getCode = () => axios.get('/getCode')

// 更换手机号
export const changenewPhone = (obj) => axios.post('/updatePhone', {
  ...obj
})
